package com.cyx.common.core.constants;

public class CacheConstants {

    public static final String LOGIN_TOKEN_KEY = "logintoken:"; // redis中存储key的前缀

    public static final Long EXP = 60L; // jwt的过期时间

    public static final Long REFRESH_TIME = 3L; // token延长的边界过期时间，当过期时间小于这个时间时，延长过期时间

    public static final String PHONE_CODE_KEY = "p:c:"; // phone:code:

    public static final String CODE_TIME_KEY = "c:t:"; // code:time:

    public static final String EXAM_UNFINISHED_LIST = "e:t:l"; // exam:time:list time代表还有时间也就是说竞赛还没完成

    public static final String EXAM_DETAIL = "e:d:"; // exam:detail 竞赛详情信息

    public static final String EXAM_HISTORY_LIST = "e:h:l";

    public static final String USER_EXAM_LIST = "u:e:l:"; // 用户竞赛列表

    public static final String USER_DETAIL = "u:d:"; // 用户详情信息

    public static final Long USER_EXP = 10L; // 用户信息过期时间

    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t"; // 用户上传的次数

    public static final String QUESTION_LIST = "q:l"; // 题目列表

    public static final String EXAM_QUESTION_LIST = "e:q:l:"; // 竞赛题目列表
}
